<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>3.模拟一个Vue中的数据代理</title>
	</head>
	<body>
		<script type="text/javascript" >
			let vm = {
				$12ewqewq:'xxx',
				$chixxsayt:'xxx',
				_data:{
					name:'尚硅谷'
				}
			}
			Object.defineProperty(vm,'name',{
				get:function proxyGetter(){
					return this._data.name
				},
				set:function proxySetter(value){
					this._data.name = value
				}
			})
			console.log(vm)
		</script>
	</body>
</html>